package com.enqualcomm.kids.manager;

import android.app.Activity;
import android.content.Intent;

import com.enqualcomm.kids.R;
import com.enqualcomm.kids.activities.FencingEditActivity_;
import com.enqualcomm.kids.network.socket.response.FencingListResult;

/**
 * Created by Yinzhiqun on 2016/6/30.
 */
public class AddTerminalHandlerImp2 implements AddTerminalHandler{
    @Override
    public void afterAddTerminal(Activity activity, String terminalid, String userterminalid) {
        FencingListResult.Data fencing = new FencingListResult.Data();
        fencing.fencingname = activity.getString(R.string.fence_home);
        fencing.fencingcode = 2;
        fencing.fencingtype = 1;//圆形
        fencing.radius = 500;//半径500

        Intent intent = new Intent(activity, FencingEditActivity_.class);
        intent.putExtra("terminalid", terminalid);
        intent.putExtra("userterminalid", userterminalid);
        intent.putExtra("fencing", fencing);
        intent.putExtra("finishIntent", "setFamily");
        activity.startActivity(intent);
        activity.finish();
    }
}
